<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>User_login</title>
<link rel="stylesheet" type="text/css"
	href="bootstrap-3.3.7-dist/css/bootstrap.css" />
<script src="static/js/jquery-1.11.3.js" type="text/javascript"
	charset="UTF-8"></script>
<script src="static/layer-v3.1.1/layer/layer.js" type="text/javascript"
	charset="UTF-8"></script>
<style type="text/css">
div {
	text-align: center;
	height: 1080px;
}
input{
	margin: auto,auto;
}
body {
	background-image: url("static/img/p_big3.jpg");
}
</style>
</head>
<body>
	<div>		
<!-- 		<input value="登录" class="btn btn-success" href="javascript:void(0)" onclick="openEdit()" /> -->
		<form action="/ST_JavaEE/loginServlet?method=login" method="post">
			用户名：<input type="text" name="name" /><br /> 密码：&nbsp;&nbsp;&nbsp;<input
				type="text" name="password" /><br />
			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			验证码：<input type="text" name="checkCode">
			 <img id="codeImgId" src="/ST_JavaEE/checkImg" onclick="refreshCode()"><br /> <input
				type="submit" value="登录" class="btn btn-success" />
		</form>
	</div>
	<script src="static/js/jquery-1.11.3.js" type="text/javascript"
		charset="utf-8"></script>
	<script type="text/javascript">
			function refreshCode(){
				$("#codeImgId").attr("src", "<%=request.getContextPath()%>/checkImg?" + Math.random());
		}
	</script>
</body>
</html>
